/*
 * @Description:
 * @Author: ldx
 * @Date: 2022-09-17 22:14:00
 * @LastEditors: ldx
 * @LastEditTime: 2022-09-28 22:48:25
 */
import axios from '@/utils/axios'
/** 退出登陆 */
export const logout = () => {
  return axios.get<unknown, any>(`/ivr/user/logout`)
}
/** 更新用户信息 */
export const updateUserInfo = (data: any) => {
  return axios.post<unknown, any>(`/ivr/user/current/update`, data)
}
/** 修改密码 */
export const passwordUpdate = (data: any) => {
  return axios.post<unknown, any>(`/ivr/user/current/password-update`, data)
}
/** 获取RSA公钥 */
export const queryPublicKey = () => {
  return axios.get<unknown, any>(`/ivr/common/rsa/public-key`)
}
